<template>
	<view>
		<view class="mui-content">
			<button class="top" id="user" @click="userPassword()">修改用户密码</button>
			<button class="top" id="pay" @click="payPassword()">修改付款密码</button>
			<!-- <button class="top" :class="type=1?'noactive':'active'" @click="merPassword()" id="shop">修改商户密码</button> -->
			<button class="top" v-if="type==1" @click="merPassword()">修改商户密码</button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				type:1,		//是否为联盟商家（1：是  2：否）
				gzhId:'',	//联盟商家ID
			}
		},
		onLoad(opt){
			this.type = opt.type;
			this.gzhId = opt.gzhId;
		},
		methods: {
			userPassword(){//修改用户密码跳转
				uni.navigateTo({
					url:'updateUserPassword'
				})
			},
			payPassword(){//修改付款密码跳转
				uni.navigateTo({
					url:'updatePayPassword'
				})
			},
			merPassword(){//修改商户密码跳转
				console.log("点击修改商户密码了")
				uni.navigateTo({
					url:'updateGzhPassword'
				})
			}
		}
	}
</script>

<style>
	.top {
		background: #EF6700;
		width: 90%;
		height: 45px;
		color: lightgray;
		/* color: white; */
		text-align: center !important;
		margin-top: 8%;
		margin-left: 5%;
		font-size: 120%;
		font-weight: bold;
		line-height: 40px;
	}
	.active{
		display: block;
	}
	.noactive{
		display: none;
	}
</style>
